package priv.menguer.singleton;

/**
 * 
 * @Title Singleton1.java
 * @description 杩�绉��瑰������烘����瀹��版�瑰�锛�杩�绉�瀹��版��澶х����棰�灏辨��涓�����澶�绾跨��� ��涓烘病������ synchronized锛���浠ヤ弗�兼��涔�涓�瀹�骞朵�绠���渚�妯″��� 杩�绉��瑰� lazy
 *              loading 寰����撅�涓�瑕�姹�绾跨�瀹���锛��ㄥ�绾跨�涓��芥�ｅ父宸ヤ���
 * @time 2018骞�10��25�� 涓���5:22:20
 * @author menguer@126.com
 * @version 1.0
 */
public class Singleton1 {
	private static Singleton1 instance;

	private Singleton1() {
	}

	public static Singleton1 getInstance() {
		if (instance == null) {
			instance = new Singleton1();
		}
		return instance;
	}
}
